package com.minova.demo.service.impl;

import com.minova.demo.entity.TzBasket;
import com.minova.demo.entity.TzSku;
import com.minova.demo.mapper.TzSkuMapper;
import com.minova.demo.service.ITzSkuService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 单品SKU表 服务实现类
 * </p>
 *
 * @author linrongji
 * @since 2019-12-23
 */
@Service
public class TzSkuServiceImpl extends ServiceImpl<TzSkuMapper, TzSku> implements ITzSkuService {

	@Autowired
	private TzSkuMapper skuMapper;
	
	@Override
	public void updateSkuActualStocks(TzBasket basket) {
		// TODO Auto-generated method stub
		skuMapper.updateSkuActualStocks(basket);
	}

	@Override
	public void skuStocksAdd(Long skuId) {
		// TODO Auto-generated method stub
		skuMapper.skuStocksAdd(skuId);
	}

	@Override
	public void skuStocksDecrease(Long skuId) {
		// TODO Auto-generated method stub
		skuMapper.skuStocksDecrease(skuId);
	}

	@Override
	public void updateSkuStock(TzBasket baskets) {
		// TODO Auto-generated method stub
		skuMapper.updateSkuStock(baskets);
	}

}
